package com.gufe.entity;

import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
//用户间好友列表，两两关联表
public class MsgAndUser {
    private Long id; // 主键ID
    private Long senderId; // 发送者ID
    private Long receiverId; // 接收者ID
    private String receiverNickname;//接收方昵称
    private String receiverAvatar;//接收放头像
    private Integer receiverOnlineStatus;//接收方在线转态
    private Integer unreadCount;//接收方未读消息总数
    private String lastMsg;//最后一条消息
    private LocalDateTime createdAt; // 创建时间
    private LocalDateTime updatedAt; // 更新时间
}
